package com.erbao.jol;

import org.openjdk.jol.info.ClassLayout;

/**
 * class 头文件
 * @author CaoBaoYin
 * @since 2022/1/3 18:42
 */
public class HelloJol {
    public static void main(String[] args) {
        Object o = new Object();
        String s = ClassLayout.parseInstance(o).toPrintable();
        System.out.println(s);

        synchronized (o) {

        }
        System.out.println(ClassLayout.parseInstance(o).toPrintable());

        // T t = new T();
    }
}

/*class T {
    int m = 8;
    String s = "fdsafsafdsaf";
}*/
